<div id="tableDiv"> 
    <table class="table-list" cellspacing="0">
        <tr class="table-header">
            <th width="3%" style="text-align:center"><input type="checkbox" id="allbox" class="checkbox" value="checkall" name="allbox" /></th>
            <th width="20%" align="left">Họ và tên</th>
            <th width="25%" align="left">Tài khoản truy cập</th>
            <th width="4%" align="center">H/A</th>
            <th width="4%" align="center">Xóa</th>
        </tr>
         {foreach key=id item=temp from=$data}
        <tr class="{if $id mod 2 !=0}row-odd{else}row-even{/if}">
            <td align="center"><input type="checkbox" class="checkbox genre-id" value="{$user_id}" name="user_id[]"/></td>
            <td id="edit-user-{$user.id}"><a href="{$config.app_root_url}?module=user&act=update&id={$temp.id}" >{$temp.fullname}</a></td>
            <td id="edit-user-{$user.id}"><a href="{$config.app_root_url}?module=user&act=update&id={$temp.id}" >{$temp.username}</a></td> 
            <td align="center"><a href="{$config.app_root_url}?module=user&act=status&id={$temp.id}" class="{if $temp.status == 1}offline{else}online{/if}" title="Thay đổi trạng thái">Change</a></td>
            <td><a href="?module=user&act=delete&id={$temp.id}" onclick="javascript: return confirm('Are you sure want to delete this record?')">Xóa</a></td>
        </tr>
        {/foreach} 
        
     </table>
</div>
 <div class="table-footer pkg">
 {if empty($search)} 
    {$page_link}
 {/if}
</div>
